#app {
  .main-container {
    // min-height: 100%;
    height: 100%;
    overflow: hidden;
    transition: margin-left .28s;
    margin-left: $sideBarWidth;
    position: relative;
    background-color: #f0f2f5;
  }

  .sidebar-container {
    transition: width 0.28s;
    width: $sideBarWidth !important;
    background-color: $menuBg;
    height: 100%;
    position: absolute;
    font-size: 0px;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1001;
    // overflow: hidden;

    // reset element-ui css
    .horizontal-collapse-transition {
      transition: 0s width ease-in-out, 0s padding-left ease-in-out, 0s padding-right ease-in-out;
    }

    .scrollbar-wrapper {
      overflow-x: hidden !important;
    }

    .el-scrollbar__bar.is-vertical {
      right: 0px;
    }

    .el-scrollbar {
      height: 100%;
    }

    &.has-logo {
      .el-scrollbar {
        // height: calc(100% - 64px);
        height: 100%;
      }
    }

    .is-horizontal {
      display: none;
    }

    a {
      display: inline-block;
      width: 100%;
      overflow: hidden;
    }

    .svg-icon {
      margin-right: 13px;
    }

    .el-menu {
      border: none;
      height: 100%;
      width: 100% !important;
    }

    .el-menu-item,
    .el-submenu__title {
      overflow: hidden !important;
      text-overflow: ellipsis !important;
      white-space: nowrap !important;
      // padding-left: 10px !important;
      padding: 0 25px 16px;
      font-size: 14px;
      font-weight: normal;
    }
    .el-menu-item {
      i {
        color: #fff;
      }
    }
    .nest-menu {
      .el-menu-item,
      .el-submenu__title {
        span {
          margin-left: 23px;
        }
      }
    }
    .el-submenu {
      &.is-opened {
        width: 100% !important;
        .el-submenu__title {
          opacity: 1
        }
        ul {
          background: rgba(0, 0, 0, 0.11);
          box-shadow: inset 0 2px 8px 0 rgba(0, 0, 0, 0.45);
        }
      }
    }
    .el-submenu .el-submenu__title {
      // padding-left: 10px !important;
      // font-size: 16px;
    }

    // menu hover
    .submenu-title-noDropdown,
    .el-submenu__title {
      &:hover {
        background-color: $menuHover !important;
        color: #fff !important;
        // font-size: 15px;
      }
    }


    .is-active>.el-submenu__title {
      color: $subMenuActiveText !important;
    }

    & .nest-menu .el-submenu>.el-submenu__title,
    & .el-submenu .el-menu-item {
      min-width: $sideBarWidth !important;
      background-color: $subMenuBg !important;
      padding-left: 30px !important;
      padding-right: 10px !important;
      font-size: 13px;

      &.is-active,
      &:hover {
        // background-color: $subMenuHover !important;
        background-image: $subMenuHover !important;
        color: #fff !important;
        font-size: 13px;
        border: 0 solid rgba(255, 255, 255, 0.40);
        box-shadow: 0 2px 0 0 rgba(0, 0, 0, 0.10), inset 0 -4px 0 0 rgba(0, 0, 0, 0.15), inset 0 2px 0 0 rgba(255, 255, 255, 0.20);
      }
    }
  }

  .hideSidebar {
    .sidebar-container {
      width: 0px !important;
    }

    .main-container {
      margin-left: 0px;
    }

    .submenu-title-noDropdown {
      padding: 0 !important;
      position: relative;
      .el-tooltip {
        padding: 0 !important;

        .svg-icon {
          margin-left: 20px;
        }
      }
    }
    .el-submenu {
      overflow: hidden;

      &>.el-submenu__title {
        padding: 0 !important;

        .svg-icon {
          margin-left: 20px;
        }

        .el-submenu__icon-arrow {
          display: none;
        }
      }
    }

    .el-menu--collapse {
      .el-submenu {
        &>.el-submenu__title {
          &>span {
            height: 0;
            width: 0;
            overflow: hidden;
            visibility: hidden;
            display: inline-block;
          }
        }
      }
    }
  }

  .submenu-title-noDropdown {
    span {
      color: #fff !important;
      opacity: 0.65 !important
    }
    &.is-active {
      span {
        color: #fff !important;
        opacity: 1 !important
      }
    }
  }

  .el-menu--collapse .el-menu .el-submenu {
    min-width: $sideBarWidth !important;
  }
  .el-submenu__title {
    opacity: .65
  }
  .el-submenu__title i {
    color: #fff !important;
    font-weight: bolder;
  }

  .el-menu-item,
  .el-submenu__title {
    .icon1 {
      width: 14px;
      height: 14px;
      margin-right: 12px;
      display: inline-block;
      background: url('../image/icon1.png') center center no-repeat;
      background-size: 100% 100%;
    }
    .icon2 {
      width: 14px;
      height: 14px;
      margin-right: 12px;
      display: inline-block;
      background: url('../image/icon2.png') center center no-repeat;
      background-size: 100% 100%;
    }
    .icon3 {
      width: 14px;
      height: 14px;
      margin-right: 12px;
      display: inline-block;
      background: url('../image/icon3.png') center center no-repeat;
      background-size: 100% 100%;
    }
    .icon4 {
      width: 14px;
      height: 14px;
      margin-right: 12px;
      display: inline-block;
      background: url('../image/icon4.png') center center no-repeat;
      background-size: 100% 100%;
    }
  }

  // mobile responsive
  .mobile {
    .main-container {
      margin-left: 0px;
    }

    .sidebar-container {
      transition: transform .28s;
      width: $sideBarWidth !important;
    }

    &.hideSidebar {
      .sidebar-container {
        pointer-events: none;
        transition-duration: 0.3s;
        transform: translate3d(-$sideBarWidth, 0, 0);
      }
    }
  }

  .withoutAnimation {

    .main-container,
    .sidebar-container {
      transition: none;
    }
  }
}

// when menu collapsed

.el-menu--vertical {
  &>.el-menu {
    .svg-icon {
      margin-right: 16px;
    }
  }

  .el-menu-item .is-active {
    color: rgb(163, 157, 157) !important;
  }

  .nest-menu .el-submenu>.el-submenu__title,
  .el-menu-item {
    &:hover {
      // you can use $subMenuHover
      background-color: $subMenuActiveText !important;
      color: $subMenuHover !important;
    }
  }
  // the scroll bar appears when the subMenu is too long
  >.el-menu--popup {
    max-height: 100vh;
    overflow-y: auto;

    &::-webkit-scrollbar-track-piece {
      background: #d3dce6;
    }

    &::-webkit-scrollbar {
      width: 6px;
    }

    &::-webkit-scrollbar-thumb {
      background: #99a9bf;
      border-radius: 20px;
    }
  }
  >.el-menu--popup-right-start {
    background-color: #034cb4 !important;
  }
}
